<template>
  <button @click="goToHome">回主页</button>
  <router-view />
</template>

<script lang="ts" setup>
import { useRouter } from "vue-router";
const router = useRouter();
const goToHome = () => router.push("Home");
</script>
